//
//  MHHelperViewController.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/6/25.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHHelperViewController.h"
#import "MHHelperViewModel.h"

@interface MHHelperViewController ()
@property(nonatomic, strong) MHHelperViewModel *viewModel;
@end

@implementation MHHelperViewController
@dynamic viewModel;

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIView *footerView = [[UIView alloc] init];
    footerView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:footerView];
    
    
    UIButton *button = [[UIButton alloc] init];
    
    [button setTitle:@"意见反馈" forState: 0];
//    button setima
//    button.titleLabel.textColor = MHColorFromHexString(@"#EC725D");
    [button setTitleColor:MHColorFromHexString(@"#EC725D") forState:0];
    [button setImage:[UIImage imageNamed:@"icon_mine_feedback"] forState:0];
//    button.titleLabel.textColor = MHColorFromHexString(@"#EC725D");
    
    button.titleLabel.font = MHRegularFont_14;
    button.rac_command = self.viewModel.redirectToFeedBack;
    [footerView addSubview:button];
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(footerView);
    }];
    
    [footerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_offset(@60);
    }];
    
    
    // Do any additional setup after loading the view.
}


-(UIEdgeInsets)contentInset
{
        return UIEdgeInsetsMake(MH_APPLICATION_TOP_BAR_HEIGHT, 0, 60, 0);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/



@end
